package com.hqyj.cl.pojo;

public class User {
    //    定义成员变量，和数据库表的字段对应
    private int id;
    private String username;
    private String password;
    private int age;
    private String hobby;
    private String role;
    private int state;

    public User() {
    }

    public User(String username, String password, int age, String hobby, String role, int state) {
        this.username = username;
        this.password = password;
        this.age = age;
        this.hobby = hobby;
        this.role = role;
        this.state = state;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", age=" + age +
                ", hobby='" + hobby + '\'' +
                ", role='" + role + '\'' +
                ", state=" + state +
                '}';
    }
}
